/* 全局样式 */
body {
    font-family: "宋体", "SimSun", serif;
    background-size: cover;
    background-color: #f2e9d8;
    padding-top: 56px; /* 为固定导航栏留出空间 */
    color: #543e23;
}

/* 导航栏样式 */
.navbar {
    background-color: #8b6b47;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand,
.nav-link {
    color: #f2e9d8 !important;
}

.navbar-brand i,
.nav-link i {
    margin-right: 5px;
}

.offcanvas {
    background-color: #9d7a54;
    color: #f2e9d8;
}

.dropdown-menu {
    background-color: #a78562;
}

.dropdown-item {
    color: #f2e9d8;
}

.dropdown-item:hover {
    background-color: #8b6b47;
    color: #f2e9d8;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
}

.breadcrumb-item a {
    color: #8b6b47;
}

.breadcrumb-item.active {
    color: #543e23;
}

/* 购物车表格 */
.cart-table {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #8b6b47;
}

.cart-table th {
    background-color: #e8dac8;
    font-weight: 600;
    padding: 15px;
    border-bottom: 2px solid #8b6b47;
    color: #543e23;
}

.cart-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #d6c3a9;
    color: #543e23;
}

.cart-table tr:last-child td {
    border-bottom: none;
}

/* 数量选择器 */
.quantity-selector {
    max-width: 120px;
}

.quantity-selector .form-control {
    padding: 0.375rem;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #8b6b47;
    color: #543e23;
}

.quantity-selector .btn {
    background-color: #e8dac8;
    border: 1px solid #8b6b47;
    color: #543e23;
}

.quantity-selector .btn:hover {
    background-color: #d6c3a9;
}

/* 操作按钮 */
.cart-actions .btn {
    padding: 10px 25px;
    background-color: #8b6b47;
    border: none;
    color: #f2e9d8;
}

.cart-actions .btn:hover {
    background-color: #7a5c3c;
}

/* 优惠信息 */
.discount-info {
    border-left: 4px solid #8b6b47;
    background-color: rgba(255, 255, 255, 0.7);
    color: #543e23;
}

/* 页脚 */
footer {
    background-color: #8b6b47;
    color: #f2e9d8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .cart-table table,
    .cart-table thead,
    .cart-table tbody,
    .cart-table th,
    .cart-table td,
    .cart-table tr {
        display: block;
    }

    .cart-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .cart-table tr {
        margin-bottom: 15px;
        border: 1px solid #8b6b47;
        border-radius: 8px;
    }

    .cart-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    .cart-table td:before {
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }

    .cart-table td:nth-of-type(1):before {
        content: "选择";
    }

    .cart-table td:nth-of-type(2):before {
        content: "图片";
    }

    .cart-table td:nth-of-type(3):before {
        content: "商品";
    }

    .cart-table td:nth-of-type(4):before {
        content: "价格";
    }

    .cart-table td:nth-of-type(5):before {
        content: "数量";
    }

    .cart-table td:nth-of-type(6):before {
        content: "小计";
    }

    .cart-table td:nth-of-type(7):before {
        content: "操作";
    }

    .quantity-selector {
        max-width: 100%;
    }
}
/* 支付模态框样式 */
.modal-content {
    background-color: #f2e9d8;
    color: #543e23;
    border: 1px solid #8b6b47;
}

.modal-header {
    background-color: #e8dac8;
    border-bottom: 1px solid #8b6b47;
}

.modal-footer {
    border-top: 1px solid #8b6b47;
}

/* 二维码支付样式 */
.qr-payment-area {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid #8b6b47;
    height: 100%;
}

.qr-code-container {
    padding: 15px;
    background-color: white;
    border-radius: 5px;
    display: inline-block;
    border: 1px solid #ddd;
}

.payment-method-title {
    color: #543e23;
    padding-bottom: 10px;
    border-bottom: 1px dashed #8b6b47;
}

.list-group-item {
    background-color: rgba(255, 255, 255, 0.8);
    color: #543e23;
    border: 1px solid #d6c3a9;
    margin-bottom: 5px;
}

.list-group-item.active {
    background-color: #8b6b47;
    border-color: #8b6b47;
}

.list-group-item img {
    vertical-align: middle;
}

.payment-instructions {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #d6c3a9;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .qr-payment-area {
        margin-top: 20px;
    }
}
.footer-title {
    color: #D4B16A;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #9A1F1A;
}